package com.lexian.service;

import com.lexian.entity.Customer;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lexian.utils.CommonResponse;

/**
 * <p>
 * 顾客 服务类
 * </p>
 *
 * @author testjava
 * @since 2021-01-14
 */
public interface CustomerService extends IService<Customer> {
    /**
     * 顾客注册(登录) 返回jwt规则生成封装用户信息的token字符串
     * @return
     */
    public String login(Customer customer);

    /**
     * 注册
     * @param customer
     * @return
     */
    public CommonResponse register(Customer customer);

    /**
     * 手机号是否已绑定用户
     * @return
     */
    public Customer isExistsByPhone(String phone);
}
